home *** CD-ROM | disk | FTP | other *** search
- -- background: 8887 from stack: in
- -- bmap block id: 4418
- -- flags: 4000
- -- background id: 0
- -- name: About.back
- ----- HyperTalk script -----
-
- on openbackground
- push recent card
- end openbackground
-
- on fixtext
- -- cut extra spaces and hard returns out of about.text
- put field "text" into old
- put number of lines in old into nline
- put empty into new
- repeat with i = 1 to nline
- set cursor to busy
- put line i of old into iline
- put number of words in iline into nword
- --if char 1 to 5 of iline = " " then
- --put iline&return after new
- --else
- repeat with j = 1 to nword
- set cursor to busy
- put word j of iline & " " after new
- end repeat
- if nword < 2 then put return after new -- end of paragraph
- --end if
- end repeat
- put new into field "text"
- fixcardname
- end fixtext
-
- on fixcardname
- put "About." & field "title" into cname
- set name of this card to cname
- end fixcardname
-
-
-
- -- part 1 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=105 top=7 right=34 bottom=334
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 18
- -- style flags: 256
- -- line height: 24
- -- part name: title
-
-
- -- part 6 (field)
- -- low flags: 01
- -- high flags: 2007
- -- rect: left=30 top=53 right=313 bottom=482
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 20
- -- text size: 12
- -- style flags: 0
- -- line height: 14
- -- part name: text
-
-
- -- part 14 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=436 top=9 right=35 bottom=467
- -- title width / last selected line: 0
- -- icon id / first selected line: 9301 / 9301
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Prev
- ----- HyperTalk script -----
- on mouseUp
- visual effect wipe right
- go to previous card
- end mouseUp
-
-
-
-
- -- part 15 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=465 top=9 right=35 bottom=493
- -- title width / last selected line: 0
- -- icon id / first selected line: 27009 / 27009
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Next
- ----- HyperTalk script -----
- on mouseUp
- visual effect wipe left
- go to next card
- end mouseUp
-
-
-
-
- -- part 16 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=395 top=6 right=38 bottom=434
- -- title width / last selected line: 0
- -- icon id / first selected line: 5059 / 5059
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: File
- ----- HyperTalk script -----
- on mouseUp
- --XCMD WriteToFile container,<usePathname>,<"name">,<append>,<creator>
- global fileCreator
- put fld "title" into filename
- writeToFile field "text",FALSE,fileName,false,FileCreator
- end mouseUp
-
-
-
- -- part 17 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=351 top=1 right=37 bottom=394
- -- title width / last selected line: 0
- -- icon id / first selected line: 1008 / 1008
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Print
- ----- HyperTalk script -----
- on mouseUp
- printfield "field text"
- end mouseUp
-
-